import { ref, computed, reactive } from "vue";
import { defineStore } from "pinia";
import { getUserInfoAPI } from "@/api/mine";
export const useCounterStore = defineStore("mine", () => {
  const userInfo = reactive({});

  //获取个人信息接口
  const getUserInfo = async () => {
    const res = await getUserInfoAPI();
    if (res && res.code == 200) {
      userInfo = res.data;
    }
  };
  return { userInfo, getUserInfo };
});
